package cn.pegasus.teamwork.sysconfig.service;

import java.util.List;

import cn.iyizhan.teamwork.base.service.BaseService;
import cn.pegasus.teamwork.sysconfig.entity.SysMessagePush;
import cn.pegasus.teamwork.sysconfig.mapper.SysMessagePushMapper;

public interface SysMessagePushService extends BaseService<SysMessagePush,SysMessagePushMapper>{

	/**
    * 添加推送用户
    */
	public int addSysMessagePush(SysMessagePush sysMessagePush) throws Exception;
	
	/**
	 * 查询所有推送用户
	 * @return
	 * @throws Exception
	 */
	public List<SysMessagePush> getSysMessagePushList() throws Exception;
	
	/**
	 * 查询推送系用户
	 * @param map
	 * @return
	 * @throws Exception
	 */
	public SysMessagePush getSysMessagePush(SysMessagePush sysMessagePush) throws Exception;
	
	
	/**
	 * 判断用户是否存在推送记录
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public boolean checkSysMessagePush(Long userId) throws Exception;
	
	
	/**
	 * 修改推送用户
	 * @param id
	 * @param userId
	 * @return
	 * @throws Exception
	 */
	public int updateSysMessagePush(SysMessagePush sysMessagePush) throws Exception;
}
